package com.xneure.enging.widget;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import com.xneure.utils.bean.GUID;

public class WidgetManage{
	private static Map<GUID,Control> map = new ConcurrentHashMap<GUID,Control>(50);

	static void register(Control ctl){
		map.put(ctl.getId(),ctl);
	}

	public static Control getControl(GUID id){
		return map.get(id);
	}

	public static void remove(Control ctl){
		map.remove(ctl.getId());
	}

	public static Map<GUID,Control> getControl(){
		return map;
	}
}
